package com.hzw.saas.web.admin.news.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author hankun
 */
@Data
@ApiModel(value = "新闻参数", description = "新闻参数")
public class NewsParam {

    @ApiModelProperty(value = "主键pid", position = 1)
    private String pid;

    @ApiModelProperty(value = "新闻标题", position = 2, required = true)
    @NotBlank(message = "新闻标题不可为空")
    private String title;

    @ApiModelProperty(value = "新闻类型", position = 3)
    private String type;

    @ApiModelProperty(value = "新闻关键字", position = 4, required = true)
    @NotBlank(message = "新闻关键字不可为空")
    private String keywords;

    @ApiModelProperty(value = "新闻描述", position = 5, required = true)
    @NotBlank(message = "新闻描述不可为空")
    private String description;

    @ApiModelProperty(value = "新闻封面图片", position = 6, required = true)
    @NotBlank(message = "新闻封面图片不可为空")
    private String titleImage;

    @ApiModelProperty(value = "新闻内容", position = 7, required = true)
    @NotBlank(message = "新闻内容不可为空")
    private String content;
}
